package com.cbtx.tablet.bean

import java.io.Serializable

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/7/6 11:50 PM
 * desc   :
 */
class MainMenuBean2 : Serializable {

    var iconId = 0
    var title: String? = null
    var launchIntent: String? = null

    var apkName: String? = null
    var apkUrl: String? = null
    var iconUrl: String? = null

    var status = 0
    var progress = 0

    val STATUS_START = 0
    val STATUS_INSTALL = 1
    val STATUS_END = 2
    val STATUS_ERROR = -2

    fun getStatusStr(): String? {
        return when (status) {
            STATUS_START -> {
                "下载中"
            }
            STATUS_INSTALL -> {
                "安装中"
            }
            STATUS_END -> {
                "已安装"
            }
            STATUS_ERROR -> {
                "安装失败"
            }
            else -> "未安装"
        }
    }
}